
module.exports = function (contact, request) {
    if (request) {  // 1. request to be friend from new contact
        request.accept()
        console.log('auto accepted for ' + contact + ' with message: ' + request.hello)
        request.contact.say('Hello, My Friend!');
    } else {        // 2. confirm friend ship
        console.log('new friend ship confirmed with ' + contact);
    }
};